package com.xh.bussiness.system.service;



import com.xh.bussiness.system.bean.dto.GroupDetailBean;
import com.xh.bussiness.system.bean.request.GroupRequest;
import com.xh.bussiness.system.model.Group;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 用户组 服务类
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
public interface IGroupService extends IBaseService<Group> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryGroupPage(XhPage page, GroupRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryGroup(GroupRequest bean);

    /**
     * 新增或修改组
     * @param group
     * @return
     */
    public boolean saveOrUpdateGroup(Group group);

    /**
     * 配置组权限
     * @param group
     * @return
     */
    public boolean configGroupRule(Group group);

    public GroupDetailBean queryGroupDetailByGroupId(String groupId);

    List<Group> queryUserGroupByUserId(String userId);

    Group queryGroupById(String groupId);

    List<Group> queryGroupByUserId(String userId);
}
